# root makefile 
# export LosuSDK_Root
export losu= LosuSDK is OK! - V$(LosuSDK_Version)
export LosuSDK_Build= $(LosuSDK_Root)/build
export LosuSDK_Root= $(shell pwd)
export LosuSDK_Path=$(LosuSDK_Build)/bin
export LosuSDK_Lib=$(LosuSDK_Build)/lib
export LosuSDK_Include=$(LosuSDK_Root)/include
export LosuSDK_Pkgs=$(LosuSDK_Root)/pkgs
export LosuSDK_Obj=$(LosuSDK_Build)/obj
export LosuSDK_Rule=$(LosuSDK_Root)/rule
export LosuSDK_Tool=$(LosuSDK_Root)/tools
export LosuSDK_Version=2.0.0


# all will make sdk ,and exec a shell
# all: liblosu.a losu losuc losuh 

sdk:\
	$(LosuSDK_Build)/.keep		\
	$(LosuSDK_Path)/losuc 		\
	$(LosuSDK_Path)/losuh 		\
	$(LosuSDK_Path)/lpkg		\
	$(LosuSDK_Build)/target/.keep\
	$(LosuSDK_Build)/target/pkgs/.keep\
	
	@sh losu-sdk.sh
	@echo "exit Losu-SDK"

clean:
	rm -rf $(LosuSDK_Build) 

cloc:
	@cloc ./ --force-lang=python,lsh --force-lang=python,els --force-lang=c,inc --force-lang=python,config --exclude-dir doc


include $(LosuSDK_Rule)/keep.mk
include $(LosuSDK_Rule)/liblosu.mk
include $(LosuSDK_Rule)/losuc.mk
include $(LosuSDK_Rule)/losuh.mk
include $(LosuSDK_Rule)/lpkg.mk
